#ifndef CALIBRATIONWIDGET_H
#define CALIBRATIONWIDGET_H

#include <QWidget>
#include "QtStateProgressBar.h"

namespace Ui {
class calibrationWidget;
}

class calibrationWidget : public QWidget
{
    Q_OBJECT

public:
    explicit calibrationWidget(QWidget *parent = nullptr);
    ~calibrationWidget();

private slots:
    void on_checkBox_2_clicked(bool checked);

    void on_checkBox_clicked(bool checked);

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void handleSerialReturn(QString);
    void on_checkBox_3_clicked(bool checked);

    void on_checkBox_4_clicked(bool checked);

    void on_checkBox_5_clicked(bool checked);
    void setInitFailed();
private:
    Ui::calibrationWidget *ui;
    QtStateProgressBar * stateProgressBar;

    void labelYesHide();
    void startCalibration();
    QByteArray handleCom2ByteReturn(QByteArray byte);
    void firstComplete2Second();
    void thirdComplete2fourth(QString);
    void newThird2fourth(QString);
    QString tmpStr = "";
    QString standardValue = "";
    bool isCheck = false;
    bool isInit = true;
signals:
    void sendStandardValue(QString);
    void startSignal();
    void stopSignal();
};

#endif // CALIBRATIONWIDGET_H
